import request from "@/utils/request";

/**
 * 列出模型
 * @returns
 */
export function listModel() {
  return request({
    url: "/bv/model/listModel",
    method: "post",
  });
}

/**
 * 切换模型
 * @param {模型名称} modelName
 * @returns
 */
export function switchModel(data) {
  return request({
    url: "/bv/model/switchModel",
    method: "post",
    data: data
  });
}

/**
 * 文本转语音
 * @returns
 */
export function batchTts(data) {
  return request({
    url: "/bv/model/batchTts",
    method: "post",
    data: data
  });
}
export function restartModel() {
  return request({
    url: "/bv/model/restartModel",
    method: "post",
  });
}

/**
 * 试听模型
 * @param {模型名称} modelName
 * @returns
 */
export function testListening(data) {
  return request({
    url: "/bv/model/testListening",
    method: "post",
    data: data
  });
}

/**
 * 获取直播间状态
 * @returns
 */
export function getLiveStatus() {
  return request({
    url: "/bv/model/getLiveStatus",
    method: "post",
  });
}

/**
 * 更新直播间状态
 * @returns
 */
export function setLiveStatus(status) {
  return request({
    url: "/bv/model/setLiveStatus/" + status,
    method: "post",
  });
}






